package cn.pconline.autoclub.entity;

import java.util.Date;
import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;

/**
 *
 * @author wanganning
 * 当日签到记录
 */
@Entity(tableName = "ac_member_checkin", split="Mod:clubId:10")
public class CheckIn {

    @Id
    @Column(name = "id")
    private long id;
    @Column(name = "user_id")
    private long uid;
    @Column(name = "club_id")
    private long clubId;
    @Column(name = "total_checkins")
    private int totalCheckIns;
    @Column(name = "continuous_checkins")
    private int continuousCheckIns;
    @Column(name = "last_checkin_at")
    private Date lastCheckInAt;
    @Column(name = "last_checkin_ymd")
    private int lastCheckinYmd;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public long getClubId() {
        return clubId;
    }

    public void setClubId(long clubId) {
        this.clubId = clubId;
    }

    public int getTotalCheckIns() {
        return totalCheckIns;
    }

    public void setTotalCheckIns(int totalCheckIns) {
        this.totalCheckIns = totalCheckIns;
    }

    public int getContinuousCheckIns() {
        return continuousCheckIns;
    }

    public void setContinuousCheckIns(int continuousCheckIns) {
        this.continuousCheckIns = continuousCheckIns;
    }

    public Date getLastCheckInAt() {
        return lastCheckInAt;
    }

    public void setLastCheckInAt(Date lastCheckInAt) {
        this.lastCheckInAt = lastCheckInAt;
    }
    
    public int getLastCheckinYmd() {
        return lastCheckinYmd;
    }

    public void setLastCheckinYmd(int lastCheckinYmd) {
        this.lastCheckinYmd = lastCheckinYmd;
    }
}
